import threading
import time

def funcA():
    for i in range(1000):
        print(i)
        time.sleep(1)


def funcB():
    for i in range(5):
        print(i)
        time.sleep(1)

if __name__ == '__main__':
    thdA = threading.Thread(target=funcA, daemon=True)
    thdA.start()
    thdB = threading.Thread(target=funcB)
    thdB.start()
    # thdA.join()
    thdB.join()
    time.sleep(3)
    print("end...........")







































































































































































































































































































































































































